package com.link2room.rodimus.dto.result.base;

import com.link2room.common.dto.result.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * Created by LN on 2017/7/11.16:19
 */
@ApiModel
public class DrawPrizeBaseDto extends BaseDto {
    @ApiModelProperty(value = "奖项代码")
    private String code;
    @ApiModelProperty(value = "奖项名称")
    private String name;
    private String prizeNo;
    @ApiModelProperty(value = "奖品类型")
    private String prizeType;
    @ApiModelProperty(value = "奖品规则")
    private String rule;
    @ApiModelProperty(value = "奖品价值")
    private BigDecimal value;
    private String drawNo;
    @ApiModelProperty(value = "数量控制策略.", allowableValues = "unLimited | limited")
    private String numStrategy;

    @ApiModelProperty(value = "活动代码")
    private String activityCode;
    /**
     * 抽奖概率设置
     */
    @ApiModelProperty(value = "抽奖概率设置")
    private Integer rate;
    /**
     * 奖品设置数量
     */
    @ApiModelProperty(value = "奖品设置数量")
    private Integer num;
    /**
     * 当前开放奖品数量
     */
    private Integer currentNum;
    /**
     * 奖品抽取数量
     */
    private Integer occupied;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrizeNo() {
        return prizeNo;
    }

    public void setPrizeNo(String prizeNo) {
        this.prizeNo = prizeNo;
    }

    public String getPrizeType() {
        return prizeType;
    }

    public void setPrizeType(String prizeType) {
        this.prizeType = prizeType;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public BigDecimal getValue() {
        return value;
    }

    public void setValue(BigDecimal value) {
        this.value = value;
    }

    public String getDrawNo() {
        return drawNo;
    }

    public void setDrawNo(String drawNo) {
        this.drawNo = drawNo;
    }

    public String getActivityCode() {
        return activityCode;
    }

    public void setActivityCode(String activityCode) {
        this.activityCode = activityCode;
    }

    public Integer getRate() {
        return rate;
    }

    public void setRate(Integer rate) {
        this.rate = rate;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getCurrentNum() {
        return currentNum;
    }

    public void setCurrentNum(Integer currentNum) {
        this.currentNum = currentNum;
    }

    public Integer getOccupied() {
        return occupied;
    }

    public void setOccupied(Integer occupied) {
        this.occupied = occupied;
    }

    public String getNumStrategy() {
        return numStrategy;
    }

    public void setNumStrategy(String numStrategy) {
        this.numStrategy = numStrategy;
    }

    @Override
    public String toString() {
        return "DrawPrizeBaseDto{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", prizeNo='" + prizeNo + '\'' +
                ", prizeType='" + prizeType + '\'' +
                ", rule='" + rule + '\'' +
                ", value=" + value +
                ", drawNo='" + drawNo + '\'' +
                ", numStrategy='" + numStrategy + '\'' +
                ", activityCode='" + activityCode + '\'' +
                ", rate=" + rate +
                ", num=" + num +
                ", currentNum=" + currentNum +
                ", occupied=" + occupied +
                '}';
    }
}
